package com.example.controller;

import com.example.entity.PointDefend;
import com.example.entity.PointFlow;
import com.example.service.PointDefendService;
import com.example.service.PointFlowService;
import com.example.service.SpotCheckItemService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 积分流水表
 */
@RestController
@RequestMapping("api/pointflow")
public class PointflowController {


    @Autowired
    public PointFlowService pointFlowService;


    /**
     * 查询数据
     */

    @ApiOperation(value = "查询积分维护表的所有数据", notes = "查询积分维护表的所有数据")
    @RequestMapping(value = "findList", method = RequestMethod.POST)
    private Map<String, Object> findList(@RequestBody PointFlow pointFlow) {
        Map<String, Object> resultMap = pointFlowService.findList(pointFlow);
        return resultMap;
    }



}
